<?php

/* 
 * http://habrahabr.ru/blogs/google/133158/
 * 
 * Project: colobok
 * and open the template in the editor.
 * @author: Sviatoslav Mysachenko <svyatoslavik@gmail.com>
 */
use \map\Tile as Tile;

class MainMap extends Widget{
    private function initScritps(){
        $this->addScript(array(
            'https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js', 
            '/js/jquery/plugins/tojson.js',
            //'http://maps.google.com/maps/api/js?sensor=false',
            'http://maps.google.com/maps/api/js?sensor=false&libraries=panoramio',
            '/js/core.js',
            '/js/map/Icons.js',
            '/js/map/MapDataManager.js',
            '/js/map/models/basemodel.js',
            '/js/map/extensions/getVisibleTilesInQuadTreeList.js',
            '/js/map/extensions/bindEvent.js',
            '/js/map/loaders/TileDataLoader.js',
            '/js/MainMap.js',
            '/js/AddPoint.js'
        ));
       $this->addCss('/css/widgets/mainmap/mainmap.css');
    }

    public function run() {
        $this->initScritps();
        //$tile = new Tile(5,5,5);
//        print_r($tile->getBounds());
        $this->render('MainMap');
    }

}